package com.pth.admin.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.model.UserInfo;
import com.pth.service.UserInfoService;
import com.pth.utils.CopyDirectory;

public class CopyPhotosActionAdmin extends ActionSupport {

	private UserInfoService infoService;
	
	private int eid;

	public int getEid() {
		return eid;
	}

	public void setEid(int eid) {
		this.eid = eid;
	}

	public void setInfoService(UserInfoService infoService) {
		this.infoService = infoService;
	}

	public UserInfoService getInfoService() {
		return infoService;
	}
	
	
	@Override
	public String execute() throws Exception {

	
		List<UserInfo> infos= infoService.getUserByeidNOpager(eid);
		
		CopyDirectory.copyFilesByUserinfo(infos);
		
		return SUCCESS;
	}
	
	
	
}
